package com.fr.design.plugin.mdnl;

import com.fr.base.TableData;
import com.fr.data.impl.multidimensional.xmla.SSASQueryXMLATableData;
import com.fr.data.impl.multidimensional.xmla.XMLATableData;
import com.fr.design.data.tabledata.tabledatapane.AbstractTableDataPane;
import com.fr.design.fun.TableDataDefineProvider;
import com.fr.general.Inter;

/**
 * @author : richie
 * @since : 8.0
 */
public class XMLATableDataDefineImpl implements TableDataDefineProvider {

    @Override
    public Class<? extends TableData> classForTableData() {
        return XMLATableData.class;
    }

    @Override
    public Class<? extends TableData> classForInitTableData() {
        return SSASQueryXMLATableData.class;
    }

    @Override
    public Class<? extends AbstractTableDataPane> appearanceForTableData() {
        return XMLATableDataPane.class;
    }

    @Override
    public String nameForTableData() {
        return Inter.getLocText("XMLA");
    }

    @Override
    public String prefixForTableData() {
        return "XMLA";
    }

    @Override
    public String iconPathForTableData() {
        return "/com/fr/design/images/data/cube.png";
    }
}
